package com.wuad.platformwuad.module.system.controller;

import com.wuad.platformwuad.common.Result;
import com.wuad.platformwuad.module.system.entity.SysUserEntity;
import com.wuad.platformwuad.module.system.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 登录控制器
 *
 * @author wuad
 * @date 2023年08月15日 9:14
 */
@RestController
public class LoginController {

    @Autowired
    private LoginService loginService;

    @PostMapping("/login")
    public Result login(@RequestBody SysUserEntity SysUserEntity) {

        return loginService.login(SysUserEntity);
    }

}
